<?php

namespace IDock\Insurance\TPIC\Request;

use IDock\Insurance\TPIC\Request\AllTPICRequest;
use IDock\Insurance\TPIC\Response\VehicleModelResponse;
use IDock\Visitor\VehicleModelVisitor;

/**
 * 车型查询接口
 */
class VehicleModelRequest extends AllTPICRequest
{
    protected $response = VehicleModelResponse::class;

    protected $urlTip = '车辆车型查询';

    public $route = 'carType';

    /**
     * @var VehicleModelVisitor $visitor
     */
    protected $visitor;

    public function generate(): array
    {
        $model = str_replace("牌",'',$this->visitor->vehicleModel);
        return [
            'vehicle' => [
                'frameNo' => $this->visitor->vin,
                'brandName' => $model,
//                'modelCode' => ''
            ]

        ];
    }
}
